package com.kedacom.demo.springrabbit.ack;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.support.CorrelationData;

public class ConfirmCallback implements RabbitTemplate.ConfirmCallback {

	protected Logger logger = LoggerFactory.getLogger(getClass());

	@Override
	public void confirm(CorrelationData correlationData, boolean ack, String cause) {
		if (correlationData == null) {
			return;
		}

		logger.debug("receive ack for {}", correlationData.getId());
	}

}
